<?php
namespace Frontend;

/**
 * Description of HomeController
 *
 * @author dung
 */

use BaseController;
use Input;
use Config;
use Validator;
use View;
use Redirect;
use Lesson;
use Lyric;
use Video;
use Lang;
use Sentry;
use Blog;

class HomeController extends BaseController
{
    //put your code here
    public function getIndex()
    {
        $data = array();
        $data['disable_hover'] = true;
        $data['blogs'] = Blog::where('is_hot', '=', 1)->orderBy('id', 'DESC')->take(6)->get();
        return View::make('frontend/homes/index', compact('data'));
    }
}
